package com.framework.admin.service;

import com.framework.admin.domain.param.ModuleTableFieldParam;
import com.framework.admin.model.ModuleTableField;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;

import java.util.List;


/**
 * @description: 模块数据表字段 Service
 * @author: lizurong
 * @version: 1.0
 * @date: 2021-03-24 11:18:24
 */

public interface IModuleTableFieldService {
    Page<ModuleTableField> listPage(ModuleTableFieldParam param, PageRequest pageRequest);

    String save(ModuleTableField param);

    void genDbTable(String moduleFormId, String tableName, String tableDesc);

    void deleteTable(String moduleFormId);

    void delete(List<String> ids);

    void update(ModuleTableField param);

    void editTableNameAndTableDesc(String moduleFormId, String tableName, String tableDesc);

    int doDDL(String type, ModuleTableField entity);
}
